home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 November: Tool Chest / Dev.CD Nov 96 TC / Dev.CD Nov 96 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSAEWindowUtils.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  1.1 KB  |  36 lines  |  [TEXT/CWIE]

  1. // MSWindowUtils.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #pragma once
  8.  
  9. #include "MSToken.h"
  10.  
  11. #include <Windows.h>
  12.  
  13. OSErr        GetDescOfNamedWindow(StringPtr nameStr, AEDesc* result);
  14. OSErr        GetDescOfNamedDocument( StringPtr nameStr, AEDesc* result );
  15. OSErr        GetDescOfNthWindow( short index, AEDesc* result );
  16. OSErr        GetDescOfNthDocument( short index, AEDesc* result );
  17.  
  18. long        GetWindowIndex( WindowPtr theWindow );
  19. OSErr        SetWindowIndex( WindowPtr theWindow, long theIndex );
  20. long        GetDocumentIndex( WindowPtr theWindow );
  21. OSErr        SetDocumentIndex( WindowPtr theWindow, long theIndex );
  22.  
  23. Boolean        IsDocumentWindow( WindowPtr theWindow );
  24. Boolean        IsResultsWindow( WindowPtr theWindow );
  25.  
  26. short        CountWindows(void);
  27. short         CountDocuments( void );
  28.  
  29. WindowPtr    GetNthWindow( long index );
  30. WindowPtr    GetNthDocument( long index );
  31. WindowPtr    GetNamedWindow( StringPtr theName );
  32. WindowPtr    GetNamedDocument( StringPtr theName );
  33.  
  34. Boolean        IsVisible( WindowPtr theWindow );
  35. OSErr        GetWindowBounds( WindowPtr theWindow, Rect* theRect );
  36.